import time


class HelloWorld:
    def __init__(self):
        self.name = ''
        self.output_access = None

    def say(self):
        # 休眠10秒，阻塞线程
        # time.sleep(5)
        self.output('Hello world,ok, %s' % self.name)

    def output(self, string: str):
        self.output_access(string)